class PhotoRecordEntity {
  String id;
  String updateTime; // 上次更新时间
  String employeeId; // 员工id
  String responsibleName; // 负责人名字
  String publisherName;//发布人名字
  String location; // 地点
  String type; // 类型
  String title; // 标题
  String content; // 内容
  String image; // 照片
  String status; // 状态
  String responsibleId; // 负责人id
  int likeCount; // 点赞数
  int commentCount; // 评论数

  PhotoRecordEntity.create();

  PhotoRecordEntity(
      this.id,
      this.updateTime,
      this.employeeId,
      this.publisherName,
      this.responsibleName,
      this.location,
      this.type,
      this.title,
      this.content,
      this.image,
      this.status,
      this.responsibleId);

  static PhotoRecordEntity fromJson(map) {
    PhotoRecordEntity photoRecordEntity = PhotoRecordEntity(
        map['id'].toString(),
        map['createTime'].toString().substring(0, 10),
        map['employee_id'].toString(),
        map['publisherName'].toString(),
        map['responsibleName'].toString(),
        map['location'].toString(),
        map['type'].toString(),
        map['title'].toString(),
        map['content'].toString(),
        map['image'].toString(),
        map['status'].toString(),
        map['responsible_id'].toString());
    return photoRecordEntity;
  }
}
